<@_categoryList modelExtend3=queryModelExtend3 modelExtend4=queryModelExtend4 parentId=queryCategoryId extend1=queryExtend1 name=queryName extend3=queryExtend3 extend2=queryExtend2 extend4=queryExtend4 modelExtend2=queryModelExtend2 disabled=queryDisabled modelExtend1=queryModelExtend1 pageIndex=pageNum count=numPerPage>
<form id="pagerForm" action="cmsCategory/list.html" method="post">
	<#include "../include_page/queryParamters.html"/>
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" method="post">
	<div class="searchBar">
		<ul class="searchContent">
<#if queryCategoryId?has_content>
	<#if !parentName?has_content><@_category id=queryCategoryId><#assign parentName=object.name/></@_category></#if>
			<li>
				<label>父分类：</label>
				<input name="queryCategoryId" type="hidden" value="${queryCategoryId!}"/>
				<input readonly="readonly" name="parentName" type="text" value="${parentName!}" />
			</li>
</#if>
			<li>
				<label><@t.m 'field.name'/>：</label>
				<input type="text" name="queryName" value="${queryName!}" />
			</li>
			<li>
				<label><@t.m 'status.deleted'/>：</label>
				<#include "../include_page/queryDisabled.html"/>
			</li>
		</ul>
		<#include "../include_page/searchBar.html"/>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="cmsCategory/add.html?parentId=${queryCategoryId!}" target="navTab"><span><@t.m 'button.add'/>分类</span></a></li>
			<li><a class="edit" href="cmsCategory/add.html?id={sid}" target="navTab"><span><@t.m 'button.edit'/></span></a></li>
			<li><a class="delete" href="cmsCategory/delete.do?id={sid}" title="<@t.m 'button.delete.ask'/>" target="ajaxTodo"><span><@t.m 'button.delete'/></span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="119">
		<thead>
			<tr>
				<th><@t.m 'field.name'/></th>
				<th>英文名</th>
				<th><@t.m 'moudle.path'/></th>
				<th><@t.m 'moudle.content'/><@t.m 'moudle.path'/></th>
				<th>每页数据</th>
				<th><@t.m 'moudle.content'/>数</th>
				<th><@t.m 'field.operate'/></th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td><a href="${(a.templatePath?has_content)?then(getSitePath(a.url),getCmsPath(a.url))}" target="_blank">${a.name!}${(a.disabled?then("[<@t.m 'status.deleted'/>]",''))!}</a></td>
				<td>${a.englishName!}</td>
				<td>${a.path!}</td>
				<td>${a.contentPath!}</td>
				<td>${a.pageSize!}</td>
				<td>${a.contents!}</td>
				<td>
					<a href="cmsCategory/static.do?id=${a.id}" target="ajaxTodo">生成</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_categoryList>